ProcessingError.fromJson constructor

ProcessingError.fromJson(
  1. Map json_
)

Implementation

ProcessingError.fromJson(core.Map json_)
    : this(
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        fieldViolations: json_.containsKey('fieldViolations')
            ? (json_['fieldViolations'] as core.List)
                .map((value) => FieldViolation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );