fromJson static method

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

Implementation

static BackgroundTypePattern? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return BackgroundTypePattern(
    fill: BackgroundFill.fromJson(tdMapFromJson(json['fill'])),
    intensity: (json['intensity'] as int?) ?? 0,
    isInverted: (json['is_inverted'] as bool?) ?? false,
    isMoving: (json['is_moving'] as bool?) ?? false,
  );
}