AttachmentVersion.fromJson constructor
Implementation
factory AttachmentVersion.fromJson(Map<String, Object?> json) {
return AttachmentVersion(
createdAt: DateTime.tryParse(json[r'createdAt'] as String? ?? ''),
message: json[r'message'] as String?,
number: (json[r'number'] as num?)?.toInt(),
minorEdit: json[r'minorEdit'] as bool? ?? false,
authorId: json[r'authorId'] as String?,
attachment: json[r'attachment'] != null
? VersionedEntity.fromJson(
json[r'attachment']! as Map<String, Object?>)
: null,
);
}