ServiceDeskCustomerDTO.fromJson constructor

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

Implementation

factory ServiceDeskCustomerDTO.fromJson(Map<String, Object?> json) {
  return ServiceDeskCustomerDTO(
    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() ??
        [],
  );
}