ContentCreateSpaceHistory.fromJson constructor

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

Implementation

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