UsersOrganizationUpdateDTO.fromJson constructor

UsersOrganizationUpdateDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory UsersOrganizationUpdateDTO.fromJson(Map<String, Object?> json) {
  return UsersOrganizationUpdateDTO(
    accountIds: (json[r'accountIds'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    usernames: (json[r'usernames'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}