fromJson static method

ChannelInfo? fromJson(
  1. dynamic value
)

Returns a new ChannelInfo instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static ChannelInfo? fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return ChannelInfo(
      props: mapCastOfType<String, String>(json, r'props'),
    );
  }
  return null;
}