ChannelIdentity.fromJson constructor

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

Create from JSON.

Implementation

factory ChannelIdentity.fromJson(Map<String, dynamic> json) {
  return ChannelIdentity(
    platform: json['platform'] as String,
    channelId: json['channelId'] as String,
    displayName: json['displayName'] as String?,
  );
}