Correction.fromJson constructor

Correction.fromJson(
  1. Map json_
)

Implementation

Correction.fromJson(core.Map json_)
    : this(
        contexts: json_.containsKey('contexts')
            ? (json_['contexts'] as core.List)
                .map((value) => ServingContext.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        details: json_.containsKey('details')
            ? (json_['details'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );