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,
      );