Route.fromJson constructor

Route.fromJson(
  1. Map _json
)

Implementation

Route.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        destinationAddress: _json.containsKey('destinationAddress')
            ? _json['destinationAddress'] as core.String
            : null,
        destinationPort: _json.containsKey('destinationPort')
            ? _json['destinationPort'] as core.int
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        labels: _json.containsKey('labels')
            ? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );