Consumer.fromJson constructor

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

Implementation

factory Consumer.fromJson(Map<String, dynamic> json) {
  return Consumer(
    consumerARN: json['ConsumerARN'] as String,
    consumerCreationTimestamp: nonNullableTimeStampFromJson(
        json['ConsumerCreationTimestamp'] as Object),
    consumerName: json['ConsumerName'] as String,
    consumerStatus: (json['ConsumerStatus'] as String).toConsumerStatus(),
  );
}