BackgroundFillGradient.fromJson constructor

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

Parses a BackgroundFillGradient from TDLib JSON.

Implementation

factory BackgroundFillGradient.fromJson(Map<String, dynamic> json) =>
    BackgroundFillGradient(
      topColor: _readInt(json['top_color']),
      bottomColor: _readInt(json['bottom_color']),
      rotationAngle: _readInt(json['rotation_angle']),
    );