SystemDto.fromJson constructor

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

Implementation

factory SystemDto.fromJson(Map<String, Object?> json) => SystemDto(
      id: json['id'] as String,
      name: json['name'] as String,
      kind: systemKindDtoFromName(json['kind'] as String),
      orchestrationId: json['orchestrationId'] as String,
      reactsToEntityIds:
          (json['reactsToEntityIds'] as List?)?.cast<String>() ?? const [],
      interactsWithEntityIds:
          (json['interactsWithEntityIds'] as List?)?.cast<String>() ??
              const [],
    );