Change.fromJson constructor

Change.fromJson(
  1. Map json_
)

Implementation

Change.fromJson(core.Map json_)
    : this(
        additions: json_.containsKey('additions')
            ? (json_['additions'] as core.List)
                .map((value) => ResourceRecordSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deletions: json_.containsKey('deletions')
            ? (json_['deletions'] as core.List)
                .map((value) => ResourceRecordSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        isServing: json_.containsKey('isServing')
            ? json_['isServing'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );