SpaceHistory.fromJson constructor

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

Implementation

factory SpaceHistory.fromJson(Map<String, Object?> json) {
  return SpaceHistory(
    createdDate: DateTime.tryParse(json[r'createdDate'] as String? ?? '') ??
        DateTime(0),
    createdBy: json[r'createdBy'] != null
        ? User.fromJson(json[r'createdBy']! as Map<String, Object?>)
        : null,
  );
}