Activation.fromJson constructor

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

Implementation

factory Activation.fromJson(Map<String, dynamic> json) {
  return Activation(
    activationId: json['ActivationId'] as String?,
    createdDate: timeStampFromJson(json['CreatedDate']),
    defaultInstanceName: json['DefaultInstanceName'] as String?,
    description: json['Description'] as String?,
    expirationDate: timeStampFromJson(json['ExpirationDate']),
    expired: json['Expired'] as bool?,
    iamRole: json['IamRole'] as String?,
    registrationLimit: json['RegistrationLimit'] as int?,
    registrationsCount: json['RegistrationsCount'] as int?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}