Application.fromJson constructor

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

Implementation

factory Application.fromJson(Map<String, dynamic> json) {
  return Application(
    displayName: json['DisplayName'] as String?,
    enabled: json['Enabled'] as bool?,
    iconURL: json['IconURL'] as String?,
    launchParameters: json['LaunchParameters'] as String?,
    launchPath: json['LaunchPath'] as String?,
    metadata: (json['Metadata'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    name: json['Name'] as String?,
  );
}