RealtimeConfigVersion.fromJson constructor
RealtimeConfigVersion.fromJson(
- Object? json
Implementation
factory RealtimeConfigVersion.fromJson(Object? json) {
if (json is num && json == json.toInt()) {
return RealtimeConfigVersionInteger(json.toInt());
}
if (json is String) {
return RealtimeConfigVersionString(json);
}
throw FormatException('Value does not match RealtimeConfigVersion: $json');
}