Dimensions.fromJson constructor

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

Implementation

factory Dimensions.fromJson(Map<String, dynamic> json) {
  return Dimensions(
    channel: (json['Channel'] as String?)?.toChannel(),
    queue: json['Queue'] != null
        ? QueueReference.fromJson(json['Queue'] as Map<String, dynamic>)
        : null,
  );
}