Version.fromJson constructor
Implementation
factory Version.fromJson(Map<String, Object?> json) {
return Version(
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?,
);
}