PlaylistId.fromString constructor

PlaylistId.fromString(
  1. dynamic obj
)

Converts obj to a PlaylistId by calling .toString on that object. If it is already a PlaylistId, obj is returned

Implementation

factory PlaylistId.fromString(dynamic obj) {
  if (obj is PlaylistId) {
    return obj;
  }
  return PlaylistId(obj.toString());
}