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<ServingContext>((value) => ServingContext.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        details: _json.containsKey('details')
            ? (_json['details'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );