GlueRecord.fromJson constructor

GlueRecord.fromJson(
  1. Map _json
)

Implementation

GlueRecord.fromJson(core.Map _json)
    : this(
        hostName: _json.containsKey('hostName')
            ? _json['hostName'] as core.String
            : null,
        ipv4Addresses: _json.containsKey('ipv4Addresses')
            ? (_json['ipv4Addresses'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        ipv6Addresses: _json.containsKey('ipv6Addresses')
            ? (_json['ipv6Addresses'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );