PartnerEventSourceAccount.fromJson constructor

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

Implementation

factory PartnerEventSourceAccount.fromJson(Map<String, dynamic> json) {
  return PartnerEventSourceAccount(
    account: json['Account'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    expirationTime: timeStampFromJson(json['ExpirationTime']),
    state: (json['State'] as String?)?.toEventSourceState(),
  );
}