Type.fromJson constructor

Type.fromJson(
  1. Map json_
)

Implementation

Type.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        insertTime: json_.containsKey('insertTime')
            ? json_['insertTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operation: json_.containsKey('operation')
            ? Operation.fromJson(
                json_['operation'] as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
      );