ActivityType.fromJson constructor

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

Implementation

factory ActivityType.fromJson(Map<String, dynamic> json) {
  return ActivityType(
    name: json['name'] as String,
    version: json['version'] as String,
  );
}