fromMap static method

LoadedResource? fromMap(
  1. Map<String, dynamic>? map
)

Implementation

static LoadedResource? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  return LoadedResource(
      initiatorType: map["initiatorType"],
      url: map["url"] != null ? Uri.parse(map["url"]) : null,
      startTime: map["startTime"],
      duration: map["duration"]);
}