toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = id;
  data['createdAt'] = createdAt;
  data['email'] = email;
  data['sms'] = sms;
  if (invoicing != null) {
    data['invoicing'] = invoicing!.toJson();
  }
  if (marketplace != null) {
    data['marketplace'] = marketplace!.toJson();
  }
  return data;
}