toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "email": email,
      "emailType": emailType,
      "companyId": companyId,
      "default": emailDefault,
      "deleted": deleted,
      "createdBy": createdBy,
      "updatedBy": updatedBy,
      "createdAt": createdAt?.toIso8601String(),
      "updatedAt": updatedAt?.toIso8601String(),
    };