UpsertDTO.fromJson constructor

UpsertDTO.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpsertDTO.fromJson(Map<String, dynamic> json) {
  return UpsertDTO(
    admins: json['admins'].cast<String>() ?? [],
    members: json['members'].cast<String>() ?? [],
  );
}