Album.fromJson constructor

Album.fromJson(
  1. Map? raw
)

Implementation

factory Album.fromJson(Map<dynamic, dynamic>? raw) {
  if (raw == null) {
    return Album("", "", 0);
  }

  return Album(raw["name"] ?? "", raw["identifier"] ?? "", raw["count"] ?? 0);
}