fromJson static method

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

Implementation

static Promotion fromJson(Map<String, dynamic> json) {
  return Promotion(
      promotionId: json['promotionId'] as String,
      creative: json['creative'] as String,
      name: json['name'] as String,
      position: json['position'] as String);
}