fromJson static method

WidgetQueryTypeData? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static WidgetQueryTypeData? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return WidgetQueryTypeData(
    withWallet: (json['with_wallet'] as bool?) ?? false,
  );
}