ErrorFrame.fromJson constructor

ErrorFrame.fromJson(
  1. Map json_
)

Implementation

ErrorFrame.fromJson(core.Map json_)
    : this(
        ingestionTime: json_.containsKey('ingestionTime')
            ? json_['ingestionTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        originalFrame: json_.containsKey('originalFrame')
            ? AssetFrame.fromJson(
                json_['originalFrame'] as core.Map<core.String, core.dynamic>)
            : null,
        violations: json_.containsKey('violations')
            ? (json_['violations'] as core.List)
                .map((value) => FrameViolationEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );