BackgroundTypePattern.fromJson constructor

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

Creates a BackgroundTypePattern object from JSON.

Implementation

factory BackgroundTypePattern.fromJson(Map<String, dynamic> json) {
  return BackgroundTypePattern(
    document: Document.fromJson(json['document']),
    fill: BackgroundFill.fromJson(json['fill']),
    intensity: json['intensity'],
    isInverted: json['is_inverted'] ?? false,
    isMoving: json['is_moving'] ?? false,
  );
}