fromJson static method

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

Implementation

static TableBranch fromJson(Map<String, dynamic> json) {
  return TableBranch(
    name: json["name"] as String,
    parentBranch: json["parent_branch"] as String?,
    parentVersion: (json["parent_version"] as num?)?.toInt(),
    createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"] as String),
    manifestSize: (json["manifest_size"] as num?)?.toInt(),
  );
}