ServiceId.fromJson constructor

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

Implementation

factory ServiceId.fromJson(Map<String, dynamic> json) {
  return ServiceId(
    accountId: json['AccountId'] as String?,
    name: json['Name'] as String?,
    names: (json['Names'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    type: json['Type'] as String?,
  );
}