ResourceSpecification.fromJson constructor

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

Implementation

factory ResourceSpecification.fromJson(Map<String, dynamic> json) {
  return ResourceSpecification(
    resourceType: (json['resourceType'] as String).toResourceType(),
    reservedBitrate: json['reservedBitrate'] as int?,
  );
}