RevisionTemplate.fromJson constructor

RevisionTemplate.fromJson(
  1. Map json_
)

Implementation

RevisionTemplate.fromJson(core.Map json_)
    : this(
        metadata: json_.containsKey('metadata')
            ? ObjectMeta.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        spec: json_.containsKey('spec')
            ? RevisionSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
      );