toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (coop != null) 'coop': coop!.toJson(),
    if (coep != null) 'coep': coep!.toJson(),
    if (csp != null) 'csp': csp!.map((e) => e.toJson()).toList(),
  };
}