Source.fromJson constructor

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

Implementation

factory Source.fromJson(Map<String, dynamic> json) {
  return Source(
    password: json['Password'] as String?,
    revision: json['Revision'] as String?,
    sshKey: json['SshKey'] as String?,
    type: (json['Type'] as String?)?.toSourceType(),
    url: json['Url'] as String?,
    username: json['Username'] as String?,
  );
}