NewProducerData.fromJson constructor

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

Implementation

factory NewProducerData.fromJson(Map<String, dynamic> json) {
  return NewProducerData(
    producerId: json['producerId'] as String,
    participantId: json['participantId'] as String,
    participantName: json['participantName'] as String,
    kind: json['kind'] as String,
    streamType: json['streamType'] != null
        ? StreamTypeExtension.fromString(json['streamType'] as String)
        : null,
  );
}