CustomerAcceptance.fromJson constructor
      
      CustomerAcceptance.fromJson(
    
    
- Object? json
 
Implementation
factory CustomerAcceptance.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CustomerAcceptance(
    acceptedAt: map['accepted_at'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(
            (map['accepted_at'] as int).toInt()),
    offline: map['offline'] == null
        ? null
        : OfflineAcceptance.fromJson(map['offline']),
    online: map['online'] == null
        ? null
        : OnlineAcceptance.fromJson(map['online']),
    type: CustomerAcceptanceType.fromJson(map['type']),
  );
}