RTCUser.fromMap constructor

RTCUser.fromMap(
  1. dynamic map
)

Implementation

factory RTCUser.fromMap(dynamic map) {
  if (map == null) throw ArgumentError('The type of action map is null');
  return RTCUser(
    uid: map['uid'],
    avatar: map['avatar'],
    name: map['name'],
    jwt: map['jwt'],
    resource: map['resource'],
  );
}