fromJson method

  1. @override
PathFillType fromJson(
  1. Object? json
)

Implementation

@override
PathFillType fromJson(Object? json) {
  if (json is String && json.toLowerCase() == 'evenodd') {
    return PathFillType.evenOdd;
  }
  return PathFillType.nonZero;
}