ModelState.fromJson constructor

ModelState.fromJson(
  1. Map _json
)

Implementation

ModelState.fromJson(core.Map _json)
    : this(
        published: _json.containsKey('published')
            ? _json['published'] as core.bool
            : null,
        validationError: _json.containsKey('validationError')
            ? Status.fromJson(_json['validationError']
                as core.Map<core.String, core.dynamic>)
            : null,
      );