Category.fromJson constructor

Category.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Category.fromJson(Map<String, dynamic> json) {
  return Category(
    categoryId: json['CategoryId'] as int?,
    categoryName: json['CategoryName'] as String?,
  );
}