fromJson static method

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

Implementation

static GroupCallStream? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return GroupCallStream(
    channelId: (json['channel_id'] as int?) ?? 0,
    scale: (json['scale'] as int?) ?? 0,
    timeOffset: (json['time_offset'] as int?) ?? 0,
  );
}