CallArgument.fromJson constructor

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

Implementation

factory CallArgument.fromJson(Map<String, dynamic> json) {
  return CallArgument(
    value: json.containsKey('value') ? json['value'] as dynamic : null,
    unserializableValue:
        json.containsKey('unserializableValue')
            ? UnserializableValue.fromJson(
              json['unserializableValue'] as String,
            )
            : null,
    objectId:
        json.containsKey('objectId')
            ? RemoteObjectId.fromJson(json['objectId'] as String)
            : null,
  );
}