Backup.fromJson constructor

Backup.fromJson(
  1. Map _json
)

Implementation

Backup.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        restoringServices: _json.containsKey('restoringServices')
            ? (_json['restoringServices'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        serviceRevision: _json.containsKey('serviceRevision')
            ? Service.fromJson(_json['serviceRevision']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
      );