EntityMapping.fromJson constructor

EntityMapping.fromJson(
  1. Map json_
)

Implementation

EntityMapping.fromJson(core.Map json_)
    : this(
        draftEntity: json_.containsKey('draftEntity')
            ? json_['draftEntity'] as core.String
            : null,
        draftType: json_.containsKey('draftType')
            ? json_['draftType'] as core.String
            : null,
        mappingLog: json_.containsKey('mappingLog')
            ? (json_['mappingLog'] as core.List)
                .map((value) => EntityMappingLogEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourceEntity: json_.containsKey('sourceEntity')
            ? json_['sourceEntity'] as core.String
            : null,
        sourceType: json_.containsKey('sourceType')
            ? json_['sourceType'] as core.String
            : null,
      );