fromJson static method

FHoverEffect fromJson(
  1. Map<String, dynamic> json
)

Implementation

static FHoverEffect fromJson(Map<String, dynamic> json) {
  return FHoverEffect(
    opacity: json['opacity'] ?? 1,
    scale: json['scale'] ?? 1,
    rotate: json['rotate'] ?? 0,
    offset: Offset(
      json['offset']['dx'] ?? 0,
      json['offset']['dy'] ?? 0,
    ),
    fill: json['fill'] != null ? FFill.fromJson(json['fill']) : null,
    shadow: json['shadow'] != null ? FShadow.fromJson(json['shadow']) : null,
    curve: FCurve.fromJson(json['curve']),
  );
}