fromJson method

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

Implementation

@override
DividerThemeData? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return DividerThemeData(
    color: const NullableColorConverter().fromJson(
      json['color'],
    ),
    endIndent: (json['endIndent'] as num?)?.toDouble(),
    indent: (json['indent'] as num?)?.toDouble(),
    space: (json['space'] as num?)?.toDouble(),
    thickness: (json['thickness'] as num?)?.toDouble(),
  );
}