ToggleCallHand$Mutation$ToggleChatCallHand.fromJson constructor

ToggleCallHand$Mutation$ToggleChatCallHand.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ToggleCallHand$Mutation$ToggleChatCallHand.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatCallEventsVersioned':
      return ToggleCallHand$Mutation$ToggleChatCallHand$ChatCallEventsVersioned
          .fromJson(json);
    case r'ToggleChatCallHandError':
      return ToggleCallHand$Mutation$ToggleChatCallHand$ToggleChatCallHandError
          .fromJson(json);
    default:
  }
  return _$ToggleCallHand$Mutation$ToggleChatCallHandFromJson(json);
}