Component.fromJson constructor

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

Implementation

factory Component.fromJson(Map<String, dynamic> json) {
  return Component(
    arn: json['arn'] as String?,
    componentName: json['componentName'] as String?,
    latestVersion: json['latestVersion'] != null
        ? ComponentLatestVersion.fromJson(
            json['latestVersion'] as Map<String, dynamic>)
        : null,
  );
}