Archive.fromJson constructor
Archive.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Archive.fromJson(Map<String, dynamic> json) {
return Archive(
archiveName: json['ArchiveName'] as String?,
creationTime: timeStampFromJson(json['CreationTime']),
eventCount: json['EventCount'] as int?,
eventSourceArn: json['EventSourceArn'] as String?,
retentionDays: json['RetentionDays'] as int?,
sizeBytes: json['SizeBytes'] as int?,
state: (json['State'] as String?)?.toArchiveState(),
stateReason: json['StateReason'] as String?,
);
}