fromJson method
Implementation
@override
PopupMenuThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return PopupMenuThemeData(
color: const NullableColorConverter().fromJson(
json['color'],
),
elevation: (json['elevation'] as num?)?.toDouble(),
enableFeedback: json['enableFeedback'] == null
? null
: (json['enableFeedback'] as bool),
shape: const NullableShapeBorderConverter().fromJson(
json['shape'],
),
textStyle: const NullableTextStyleConverter().fromJson(
json['textStyle'],
),
);
}