Update.fromJson constructor
Implementation
factory Update.fromJson(Map<String, dynamic> json) {
return Update(
createdAt: timeStampFromJson(json['createdAt']),
errors: (json['errors'] as List?)
?.whereNotNull()
.map((e) => ErrorDetail.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
params: (json['params'] as List?)
?.whereNotNull()
.map((e) => UpdateParam.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['status'] as String?)?.toUpdateStatus(),
type: (json['type'] as String?)?.toUpdateType(),
);
}