fromJson method
Implementation
@override
FloatingActionButtonThemeData? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return FloatingActionButtonThemeData(
backgroundColor: const NullableColorConverter().fromJson(
json['backgroundColor'],
),
disabledElevation: (json['disabledElevation'] as num?)?.toDouble(),
elevation: (json['elevation'] as num?)?.toDouble(),
focusColor: const NullableColorConverter().fromJson(
json['focusColor'],
),
focusElevation: (json['focusElevation'] as num?)?.toDouble(),
foregroundColor: const NullableColorConverter().fromJson(
json['foregroundColor'],
),
highlightElevation: (json['highlightElevation'] as num?)?.toDouble(),
hoverColor: const NullableColorConverter().fromJson(
json['hoverColor'],
),
hoverElevation: (json['hoverElevation'] as num?)?.toDouble(),
shape: const NullableShapeBorderConverter().fromJson(
json['shape'],
),
splashColor: const NullableColorConverter().fromJson(
json['splashColor'],
),
);
}