RepositoryAssociation.fromJson constructor

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

Implementation

factory RepositoryAssociation.fromJson(Map<String, dynamic> json) {
  return RepositoryAssociation(
    associationArn: json['AssociationArn'] as String?,
    associationId: json['AssociationId'] as String?,
    connectionArn: json['ConnectionArn'] as String?,
    createdTimeStamp: timeStampFromJson(json['CreatedTimeStamp']),
    lastUpdatedTimeStamp: timeStampFromJson(json['LastUpdatedTimeStamp']),
    name: json['Name'] as String?,
    owner: json['Owner'] as String?,
    providerType: (json['ProviderType'] as String?)?.toProviderType(),
    state: (json['State'] as String?)?.toRepositoryAssociationState(),
    stateReason: json['StateReason'] as String?,
  );
}