EntityDto.fromJson constructor

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

Implementation

factory EntityDto.fromJson(Map<String, Object?> json) => EntityDto(
      id: json['id'] as String,
      name: json['name'] as String,
      kind: entityKindDtoFromName(json['kind'] as String),
      typeName: json['typeName'] as String,
      orchestrationId: json['orchestrationId'] as String,
      value: json.containsKey('value')
          ? JsonValueDto.fromJson(json['value'])
          : null,
      previous: json.containsKey('previous')
          ? JsonValueDto.fromJson(json['previous'])
          : null,
      updatedAtMicros: json['updatedAtMicros'] as int?,
    );