SpacePropertyVersion.fromJson constructor

SpacePropertyVersion.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SpacePropertyVersion.fromJson(Map<String, Object?> json) {
  return SpacePropertyVersion(
    createdAt: DateTime.tryParse(json[r'createdAt'] as String? ?? ''),
    createdBy: json[r'createdBy'] as String?,
    message: json[r'message'] as String?,
    number: (json[r'number'] as num?)?.toInt(),
  );
}