BusinessType.fromJson constructor

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

Implementation

factory BusinessType.fromJson(Map<String, dynamic> json) =>
    BusinessType(
      id: json["id"],
      name: json["name"],
      status: json["status"],
      deletedAt: json["deleted_at"],
      createdAt: json["created_at"] == null
          ? null
          : DateTime.parse(json["created_at"]),
      updatedAt: json["updated_at"] == null
          ? null
          : DateTime.parse(json["updated_at"]),
    );