KoolbaseCollection.fromJson constructor
Implementation
factory KoolbaseCollection.fromJson(Map<String, dynamic> json) {
return KoolbaseCollection(
id: json['id'] as String,
projectId: json['project_id'] as String,
name: json['name'] as String,
readRule: json['read_rule'] as String,
writeRule: json['write_rule'] as String,
deleteRule: json['delete_rule'] as String,
createdAt: DateTime.parse(json['created_at'] as String),
);
}